// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

import 'element-ui/lib/theme-chalk/index.css'
import ElementUI from 'element-ui'

import axios from 'axios'
import router from './router'
import Vuecookie from 'vue-cookie'
import store from '@/store' 
import httpRequest from '@/utils/httpRequest'
import cloneDeep from 'lodash/cloneDeep'

import '@/assets/scss/index.scss'

import '@/icons'


import { isAuth } from '@/utils'

//代码高亮
import VueHighlightJS from 'vue-highlightjs'
import 'highlight.js/styles/atom-one-dark.css'

import 'echarts-gl'

Vue.use(ElementUI)
Vue.use(Vuecookie)
Vue.use(VueHighlightJS)
Vue.prototype.$axios = axios
//axios.defaults.baseURL="http://localhost:88/admin/";
Vue.prototype.$http = httpRequest
Vue.prototype.isAuth = isAuth     // 权限方法

// 保存整站vuex本地储存初始状态
window.SITE_CONFIG['storeState'] = cloneDeep(store.state)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app")
